package com.qfedu.meidijiaju.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author meidimeiju
 * @since 2022-10-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PinglunYxy implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "评论自增id")
    @TableId(value = "pinglun_id", type = IdType.AUTO)
    private Integer pinglunId;

    @ApiModelProperty(value = "评论内容")
    private String pingluncontent;

    @ApiModelProperty(value = "是谁评论的？")
    private Integer pinglunuserId;

    @ApiModelProperty(value = "评论时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date pinglundate;

    @ApiModelProperty(value = "改评论对应的帖子id")
    private Integer tieziId;

    @TableField(exist = false)  // 该属性不是数据表中的字段
    private FaxiantieziYxy faxiantieziYxy;

    @TableField(exist = false)  // 该属性不是数据表中的字段
    private UserYxy userYxy;


}
